package com.yjz.media.study.rtmp;

/**
 * 作用 : RTMP数据包Bean
 * 作者 : yjz
 * 时间 : 2023/11/8 16:39
 */
public class RTMPPacket {

    public static final int VIDE_TYPE = 0;
    public static final int AUDIO_TYPE = 1;
    public static final int AUDIO_HEAD_TYPE = 1;

    public byte[] buffer;
    public int type;

    public RTMPPacket(byte[] buffer, int type) {
        this.buffer = buffer;
        this.type = type;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public byte[] getBuffer() {
        return buffer;
    }

    public void setBuffer(byte[] buffer) {
        this.buffer = buffer;
    }
}
